﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GestureLib;

namespace GesturePlayer
{
    class MethodInvokerGestureAction : IGestureAction
    {
        public delegate void NoArgumentsMethodInvokerDelegate();

        public Delegate MethodDelegate { get; set; }
        public object[] Arguments { get; set; }

        #region IGestureAction Members

        public void Execute()
        {
            MethodDelegate.DynamicInvoke(Arguments);
        }

        #endregion

        #region INamed Members

        public string Name { get; set; }

        #endregion
    }
}
